<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>全局注册</title>
    <script src="https://cdn.staticfile.org/vue/2.2.2/vue.min.js"></script>
</head>
<body>
<div id="case13-demo1">
    <my-component></my-component>
</div>
<script type="text/javascript">
    Vue.component('my-component',{
        template:'<div>全局注册</div>'
    })
    var case13Demo1=new Vue({
        el:"#case13-demo1",
        data:{

    }
    })
</script>
</body>
</html>